package com.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Item {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_id")
    private  Integer  itemId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_selected")
    private  Integer  itemSelected;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_cart_id")
    private  Integer  itemCartId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_user_id")
    private  Integer  itemUserId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_name")
    private  String  itemSkuName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_id")
    private  Integer itemSkuId ;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_count")
    private  Integer itemSkuCount ;
    // 单价
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_price")
    private BigDecimal itemSkuPrice;
    // 温度
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_temp")
    private  String itemSkuTemp ;
    // 糖
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_sugar")
    private  String itemSkuSugar ;
    // 奶油
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_cream")
    private  String itemSkuCream ;
    // 尺寸
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("item_sku_size")
    private  String itemSkuSize;
    //时间
    @JsonProperty("item_sku_create")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date itemSkuCreate;


}
